package shop.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;

@Entity
public class User {

    @Id
    private String utele;//用户手机号（用户账号）

    @NotNull
    private String uname;//用户名
    private String upassword;//密码
    private String uemail;//邮箱

    public User(){
    }

    public User(String utele, String uname, String upassword, String uemail) {
        this.utele = utele;
        this.uname = uname;
        this.upassword = upassword;
        this.uemail = uemail;
    }

    public String getUtele() {
        return utele;
    }

    public void setUtele(String utele) {
        this.utele = utele;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpassword() {
        return upassword;
    }

    public void setUpassword(String upassword) {
        this.upassword = upassword;
    }

    public String getUemail() {
        return uemail;
    }

    public void setUemail(String uemail) {
        this.uemail = uemail;
    }
}
